package com.zyk.scaffold.user.controller.tenantrole;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@ApiModel("角色更新请求")
public class TenantRoleEditedRequ implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键", required = true)
    @NotNull(message = "ID不能为空!")
    private Long id;

    @ApiModelProperty(value = "角色名称", required = true)
    @NotEmpty(message = "角色名称不能为空!")
    private String name;

    @ApiModelProperty(value = "租户功能ID", required = true)
    @NotEmpty(message = "租户功能ID不能为空!")
    private List<Long> tenantFunctionIds;

    @ApiModelProperty(value = "备注")
    private String remark;
}
